<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="__PUBLIC__/Css/Home/qiandao.css">
	<link rel="stylesheet" href="__PUBLIC__/Css/bootstrap.css">
	<title>签到</title>
	<script>
    function a(){
		var obj = document.getElementById('show_select');    
			for (var i = 0; i < obj.options.length; i++) {        
				if (obj.options[i].value == obj.value) {
                	if((i+1) >= obj.options.length){
						obj.options[0].selected=true;
                    }else{
						obj.options[i].selected=true;
                    }
					break;
			}        
			} 
    }
   </script>

</head>
<body class='container'>
	<form role='form' class='form-horizontal' action="__URL__/showinfo" method='post'>
		选择要查看的组别
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<select id='show_select' class='form-control' name="groid">
			<volist  name='groarr' id='vo'>
			<if condition='$groupId eq $i'>
				<option  value='<{$i}>' selected='selected'><{$vo[groupname]}></option>
			<else/>
				<option  value='<{$i}>'><{$vo[groupname]}></option>
			</if>
			</volist>
		</select>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		第
		<select id='show_select1' class='form-control' name="selweek">
			<for start='1' end='$weeknum+1' >
			<if condition='$selweek eq $i'>
				<option  value='<{$i}>' selected='selected'><{$i}></option>
			<else/>
				<option  value='<{$i}>'><{$i}></option>
			</if>
			</for>
		</select>
		周
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<button id='input_submit' class='btn  btn-primary' type="submit">查询</button>
	</form>

	<br/>
	<table  class='table table-bordered table-striped' width='900'>
		<tr>
			<td>姓名</td>
			<td colspan='3'>周一</td>
			<td colspan='3'>周二</td>
			<td colspan='3'>周三</td>
			<td colspan='3'>周四</td>
			<td colspan='3'>周五</td>
			<td colspan='3'>周六</td>
			<td colspan='3'>周日</td>
			<td>合计</td>
		</tr>
		<tbody>
		<volist name='qdlist' id='vo'>
			<tr>
				<if condition='$vo.name eq ""'>
				<else/>
					<td><{$vo.name}></td>
					<for start='1' end='8' name='k'>
					<if condition='$k eq 7'>
						<if condition='$vo[$k-7] eq "1"'>
							<td id='sign'></td>
							<td></td>
							<td></td>
						<elseif condition='$vo[$k-7] eq 2'/>
							<td ></td>
							<td id='sign'></td>
							<td></td>
						<elseif condition='$vo[$k-7] eq 4'/>
							<td ></td>
							<td></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k-7] eq 3'/>
							<td id='sign'></td>
							<td id='sign'></td>
							<td></td>
						<elseif condition='$vo[$k-7] eq 5'/>
							<td id='sign'></td>
							<td></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k-7] eq 6'/>
							<td ></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k-7] eq 7'/>
							<td id='sign'></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<else />
							<td ></td>
							<td ></td>
							<td ></td>
						</if>
					<else/>
						<if condition='$vo[$k] eq "1"'>
							<td id='sign'></td>
							<td></td>
							<td></td>
						<elseif condition='$vo[$k] eq 2'/>
							<td ></td>
							<td id='sign'></td>
							<td></td>
						<elseif condition='$vo[$k] eq 4'/>
							<td ></td>
							<td></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k] eq 3'/>
							<td id='sign'></td>
							<td id='sign'></td>
							<td></td>
						<elseif condition='$vo[$k] eq 5'/>
							<td id='sign'></td>
							<td></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k] eq 6'/>
							<td ></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<elseif condition='$vo[$k] eq 7'/>
							<td id='sign'></td>
							<td id='sign'></td>
							<td id='sign'></td>
						<else />
							<td ></td>
							<td ></td>
							<td ></td>
						</if>
					</if>
					</for>
					<td><{$vo.sum}></td>
				</if>
			</tr>
		</volist>
		</tbody>
	</table>
</body>
</html>
